/**
 * 存储本地数据, 不能存复杂对象
 * 相当于SharedObject
 * @returns {LocalStorage}
 */
LocalStorage = function()
{
	this.className="LocalStorage";
	this._ls = window.localStorage ;
};
LocalStorage.prototype.putItem = function(key,value)
{
	if(this._ls){
		this._ls.putItem(key,value);
	}
};
LocalStorage.prototype.getItem = function(key)
{
	if(this._ls){
		this._ls.getItem(key);
	}
	return undefined ;
};
LocalStorage.prototype.removeItem  = function(key)
{
	if(this._ls){
		this._ls.removeItem(key);
	}
};
LocalStorage.prototype.clear  = function()
{
	if(this._ls){
		this._ls.clear();
	}
};
LocalStorage.prototype.contain = function(key)
{
	if(this._ls){
		return this._ls[key];
	}
	return false ;
};
LocalStorage.prototype.getLocalStorage = function(){
	return this._ls ;
}
;